import request from "@/utils/service.js"
// 查询今日订单
export let findbyday = (current, pageSize) => {
    return request({
        url: "/order/findbyday",
        method: "GET",
        params: {
            current: current,
            pageSize: pageSize
        }
    })
}

// 餐桌信息
export let findAlldining = () => {
    return request({
        url: "dining/findAlldining",
        method: "GET",
        query: {

        }
    })
}
// 修改餐桌信息
export let update = (id, da, ren, chang) => {
    return request({
        url: "/dining/update",
        method: "POST",
        data: {
            diningId: Number(id),
            diningNum: Number(ren),
            diningType: da,
            diningStatus: chang == "正常" ? 0 : 1
        }
    })
}
//所有销售额
export let findAllmoney = () => {
    return request({
        url: "/order/findAllmoney",
        method: "GET",
        query: {

        }
    })
}
//所有菜品
export let findAll = () => {
    return request({
        url: "/food/findAll",
        method: "GET",
        query: {

        }
    })
}